package com.whale.kernel.service;

import java.util.Collection;
import java.util.List;

import com.whale.kernel.domain.Authority;
import com.whale.kernel.domain.UserAccount;

public interface UserService {

	UserAccount findUserByName(String username);
	
	List<Authority> findUserAuthorities(String username);
	
	void createOrUpdateUser(String username, String password, Collection<String> authorities);
	
	UserAccount createUser(UserAccount userAccount, Collection<String> authorities);
}
